package com.sale.goods.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sale.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description 源单据实体
 * @Date 23-07-28
 * @Author hl
 **/
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("goods_source")
public class GoodsSource extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "source_id")
    private Long sourceId;

    /**
     * 源单单号
     */
    private String sourceCode;

    /**
     * 源单类型
     */
    private String sourceType;

    /**
     * 单据日期
     */
    private String sourceTime;

    /**
     * 单据金额
     */
    private BigDecimal sourceAmount;

    /**
     * 已核销金额
     */
    private BigDecimal cancelledAmount;

    /**
     * 未核销金额
     */
    private BigDecimal unwrittenAmount;

    /**
     * 本次核销金额
     */
    private BigDecimal thisAmount;

    /**
     * 关联id
     */
    private Long relevanceId;

}

